home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 286_01 / gds.h < prev    next >
Text File  |  1989-05-23  |  2KB  |  86 lines

  1. #ifdef COLOR
  2. #  ifdef HERC
  3. #    undef COLOR        /* both are defined, use Hercules */
  4. #   endif
  5. #else
  6. #  ifndef HERC
  7. #    define HERC        /* neither is deinfed, default to Hercules */ 
  8. #  endif
  9. #endif
  10.  
  11.  
  12. #ifdef HERC
  13. #  define MAX_XSCN 719
  14. #  define MAX_YSCN 347
  15. #endif
  16.  
  17. #ifdef COLOR
  18. #  define MAX_XSCN 639
  19. #  define MAX_YSCN 199
  20. #endif
  21.  
  22. #define NOT_USED 0
  23. #define USED 1
  24. #define PERMANENT 2
  25.  
  26. #define FALSE 0
  27. #define TRUE 1
  28.  
  29. #define inside(x,y) x >= WINX1 && x <= WINX2 && y >= WINY1 && y <= WINY2
  30. #define outside(x,y) x < WINX1 || x > WINX2 || y < WINY1 || y > WINY2
  31.  
  32. struct fdesc {
  33.   int status;
  34.   int far *faddr;
  35.   int ln_byte;
  36.   int horz, vert;
  37.   int forgx,forgy;
  38.   int fwinx1,fwinx2,fwiny1,fwiny2;
  39. };
  40.  
  41. struct fontspec {
  42.     unsigned char width,inkwidth,height;
  43.       signed char leftmargin;
  44.     unsigned char topline,cellheight;
  45. };
  46.  
  47. struct FONTABLE {
  48.     int status,type, start, lastchar, defch, direction;
  49.     struct fontspec huge *chinfo;
  50.     char huge *fontaddr;
  51.     long huge *szinfo;
  52. };
  53.  
  54. struct prtcmd {
  55.     int length,factor,numh,numl;
  56.     char code[8];
  57. };
  58.  
  59. extern unsigned int DOTVALUE[], LEFTWORD[], RIGHTWORD[];
  60. #ifdef LINT_ARGS
  61.   int far *calcaddr(int,int), far *nor_ptr(int far *), far *phyaddr(int,int);
  62.   int fr_read(int far *), fr_write(int far *, int);
  63.   long dosread(int, char huge *, long);
  64. #else
  65.   int far *calcaddr(), far *nor_ptr(), far *phyaddr();
  66.   int fr_read(),fr_write();
  67.   long dosread();
  68. #endif
  69. extern int far *FRM_ST;
  70. extern int exchange();
  71. extern int CUR_FRAME, CUR_PLOT;
  72. extern unsigned int STYLE;
  73. extern int WINX1, WINY1, WINX2, WINY2, XLIMIT, YLIMIT;
  74. extern int ORGX, ORGY;
  75. extern struct fdesc FTABLE[];
  76. extern int LNBYTE, LADDRO, LADDRS, LASTX, LASTY, LASTX2, LASTY2;
  77. extern int NULLPRT, ARCSPEC;
  78. extern struct FONTABLE FONTTAB[];
  79. extern char CFBUF[];
  80. extern int CURFONT;
  81. extern int TEN_MS;
  82. extern void (*PRE_ERROR_FUNC)(), (*POST_ERROR_FUNC)();
  83. extern int (*SPACING_FUNC)();
  84. extern int PRE_ERROR_LEVEL, POST_ERROR_LEVEL;
  85.  
  86.